const articlePublicReducer = (state = {
	isPublish: false
}, action) => {
	switch (action.type) {
		case "PUBLIC_ARTICLE_SUCCESS":
			return Object.assign({}, state, {
				isPublish: true,
				info: action.info
			})
		case "PUBLIC_ARTICLE_ERROR":
			return Object.assign({}, state, {
				isPublish: false,
				info: action.info
			})
		default:
			return state
	}
}

export default articlePublicReducer